package com.semeureka.fault.util;

import java.util.Date;

import com.semeureka.fault.bean.Device.Phase;
import com.semeureka.fault.bean.Group;

public class Threshold implements Message {
	private Long id;
	private Integer value;
	private Group group;
	private Phase phase;
	private Date createTime;

	public Long getId() {
		return id;
	}

	public void setId(Long id) {
		this.id = id;
	}

	public Integer getValue() {
		return value;
	}

	public void setValue(Integer value) {
		this.value = value;
	}

	@Override
	public Group getGroup() {
		return group;
	}

	public void setGroup(Group group) {
		this.group = group;
	}

	@Override
	public Phase getPhase() {
		return phase;
	}

	public void setPhase(Phase phase) {
		this.phase = phase;
	}

	@Override
	public Date getCreateTime() {
		return createTime;
	}

	public void setCreateTime(Date createTime) {
		this.createTime = createTime;
	}

	public Threshold() {
	}

	public Threshold(Integer value, Group group, Phase phase, Date createTime) {
		this.value = value;
		this.group = group;
		this.phase = phase;
		this.createTime = createTime;
	}
}
